package ch6oopexeruiteacher;

import ch6oopexerteacher.Teacher;

public class uiTeacher extends Teacher {
    String lesson;

    public uiTeacher() {

    }

    public uiTeacher(String name, int age, int year, String gender, String lesson) {
        super(name, age, year, gender);
        this.lesson = lesson;
    }

    public void method(){
        System.out.println("有"+lesson+"绘制图像的方法");
    }
    public void selfIntroduce(){
        super.selfIntroduce();
        method();
    }
    public void giveLession(){
        System.out.println("UI老师使用photoshop上课");

    }
}
